﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebSite_CodeMan.Sys_CodeMan_Manage
{
    public partial class Admin_About_Mes : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            BaseClass.BaseClass.CheckState();
            if (!IsPostBack)
            {
                LoadData();
            }
        }
        private void LoadData()
        {
            txt_About.Value = Server.HtmlDecode(BLL.WebInfo.GetWebAboutInfo());
        }

        protected void BtnSave_Click(object sender, EventArgs e)
        {
            if (BLL.WebInfo.UpdateWebAboutInfo(Server.HtmlEncode(txt_About.Value)))
            {
                Common.MessageBox.Show(Page, "信息更新成功", "Admin_About_Mes.aspx", "ok");
            }
            else
            {
                Common.MessageBox.Show(Page, "信息更新失败，请重试或关注日志","ok");
            }
        }
    }
}
